package com.zhuxiang.service.impl;

import com.zhuxiang.dao.UserloginlogDao;
import com.zhuxiang.entity.Userloginlog;
import com.zhuxiang.service.UserloginlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserloginlogServiceImpl implements UserloginlogService {
    @Autowired
    private UserloginlogDao userloginlogDao;
    @Override
    public void addLoginlog(Userloginlog loginlog) {
        userloginlogDao.addLoginlog(loginlog);
    }

    @Override
    public List<Userloginlog> selectAll(int userId) {
        return userloginlogDao.selectAll(userId);
    }
}
